package io.renren.modules.weldradio.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.weldradio.dao.WeldradioDao;
import io.renren.modules.weldradio.entity.WeldradioEntity;
import io.renren.modules.weldradio.service.WeldradioService;


@Service("weldradioService")
public class WeldradioServiceImpl extends ServiceImpl<WeldradioDao, WeldradioEntity> implements WeldradioService {

    @Autowired
    WeldradioDao weldradioDao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WeldradioEntity> page = this.page(
                new Query<WeldradioEntity>().getPage(params),
                new QueryWrapper<WeldradioEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<WeldradioEntity> getweldradio(String weldName,String startTime, String endTime) {
        return weldradioDao.getweldradio(weldName,startTime,endTime);
    }

}